package com.handsure.xixili.repository;

import com.handsure.xixili.entity.Employee;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @author Cheng.Peng
 * @version 1.0
 * @time 2017/6/7 16:00
 * @Description TODO
 */
public interface EmployeeRepository extends PagingAndSortingRepository<Employee, String> {
    Employee findByUsernameAndRemoved(String name,int removed);

    Page<Employee> findByRemoved(int removed, Pageable pageable);
}
